using System;
using System.Collections.Generic;

namespace Calimbra.Runtime.Contracts
{
    public interface IFlowRuntime
    {
        void Process(IMessage message);
        event Action<IMessage> Result;
      
        void AddStream(IStream stream);
        void AddStream(string fromPortName, string toPortName);
        void AddOperation(IOperation operation);
        void AddOperations(IEnumerable<IOperation> operations);
    }
}